﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DiskInspector.Model.MetaDataAttributes;

namespace DiskInspector.Model.FileRecordStructure
{
    public class DataAttributeContent : AttributeContent
    {
        public class DataRun
        {
            [FieldLength(BitLength = 4)]
            public byte ClusterCountSize { get; set; }

            [FieldLength(BitLength = 4)]
            public byte ClusterOffsetSize { get; set; }

            public int ClusterCount { get; set; }

            public long ClusterOffset { get; set; }
        }
    }

    public class NonResidentDataAttributeContent : DataAttributeContent
    {
        public DataRun[] RunList { get; set; }
    }

    public class ResidentDataAttributeContent : DataAttributeContent
    {
        public byte[] FileContent { get; set; }
    }
}
